﻿using furion.blog.Application.Contracts;
using furion.blog.Domain.IRepositories;
using furion.blog.Domain.Query.Building;
using furion.blog.Domain.Shared;
using Furion.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Application
{
    public class BuildingService : IBuildingService, ISingleton
    {

        private readonly IBuildingRepository _buildingRepository;

        public BuildingService(IBuildingRepository buildingRepository) {
            this._buildingRepository = buildingRepository;
        }

        
        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<PageVO> List(BuildingListQuery query)
        {
            return this._buildingRepository.List(query);
        }
    }
}
